package cn.edu.scau.cmi.wujiaxian.exercise8;


public class Example8_5 {
	
	public static void main(String[] args) {
		Bank bank = new Bank();
		try {
			bank.income(200, -100);
			bank.income(300, -100);
			bank.income(400, -100);
			System.out.printf("银行目前有%d元\n",bank.money);
			bank.income(200, 100);
			bank.income(9999, -100);
		} catch (BankException e) {
			System.out.println("计算手艺的过程出现如下问题：");
			System.out.println(e.message);
		}
		System.out.printf("银行目前有%d元\n",bank.money);
	}
	
}
